package com.khshop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.khshop.pojo.Address;
import com.baomidou.mybatisplus.extension.service.IService;
import com.khshop.pojo.Comment;
import com.khshop.vo.ServiceResult;

import java.util.Map;

/**
 * <p>
 * 地址 服务类
 * </p>
 *
 * @author zhaoyang
 * @since 2020-10-15
 */
public interface AddressService extends IService<Address> {


    //新增地址
    public ServiceResult<Address> addAddress(Address address);

    //修改地址
    public ServiceResult<Address> updateAddress(Address address);

    //删除地址
    public ServiceResult<Address> delAddress(Long id);

    //设置默认地址
    public ServiceResult<Address> setDefaultAddress(Long id);

    //查询地址
    public ServiceResult<IPage<Address>> searchAddress(Long userid, Integer page, Integer limit);

    //查询地址
    public ServiceResult<Address> getAddress(Long id);

}
